UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

Performance Charts must use the "setCharacterEncodingFilter" filter.


Overview

Finding ID Version Rule ID IA Controls Severity
V-256631 VCPF-70-000021 SV-256631r888384_rule Medium
Description
Invalid user input occurs when a user inserts data or characters into a hosted application's data entry field and the hosted application is unprepared to process that data. This results in unanticipated application behavior, potentially leading to an application compromise. Invalid user input is one of the primary methods employed when attempting to compromise an application. An attacker can also enter Unicode characters into hosted applications in an effort to break out of the document home or root home directory or to bypass security checks. VMware uses the standard Tomcat "SetCharacterEncodingFilter" to provide a layer of defense against character encoding attacks. Filters are Java objects that performs filtering tasks on the request to a resource (a servlet or static content), the response from a resource, or both.
STIG Date
VMware vSphere 7.0 vCenter Appliance Perfcharts Security Technical Implementation Guide 2023-02-21

Details

Check Text ( C-60306r888382_chk )
At the command prompt, run the following command:

# xmllint --format /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/WEB-INF/web.xml | sed 's/xmlns=".*"//g' | xmllint --xpath '/web-app/filter-mapping/filter-name[text()="setCharacterEncodingFilter"]/parent::filter-mapping' -

Expected result:


setCharacterEncodingFilter
/*


If the output is does not match the expected result, this is a finding.

At the command prompt, run the following command:

# xmllint --format /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/WEB-INF/web.xml | sed 's/xmlns=".*"//g' | xmllint --xpath '/web-app/filter/filter-name[text()="setCharacterEncodingFilter"]/parent::filter' -

Expected result:


setCharacterEncodingFilter

org.apache.catalina.filters.SetCharacterEncodingFilter


encoding
UTF-8


ignore
true

true


If the output is does not match the expected result, this is a finding.
Fix Text (F-60249r888383_fix)
Navigate to and open:

/usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/WEB-INF/web.xml

Configure the node with the child nodes listed below:


setCharacterEncodingFilter
/*



setCharacterEncodingFilter

org.apache.catalina.filters.SetCharacterEncodingFilter


encoding
UTF-8


ignore
true

true


Restart the service with the following command:

# vmon-cli --restart perfcharts